projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0b20d4
)
post/board/lwmon5/gdc.c: Fix GCC 4.6 build warning
author
Wolfgang Denk
<
[email protected]
>
Tue, 29 Nov 2011 22:17:52 +0000
(22:17 +0000)
committer
Wolfgang Denk
<
[email protected]
>
Thu, 1 Dec 2011 23:14:40 +0000
(
00:14
+0100)
Fix:
gdc.c: In function 'gdc_test_reg_one':
gdc.c:66:6: warning: variable 'ret' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <
[email protected]
>
Cc: Stefan Roese <
[email protected]
>
Acked-by: Stefan Roese <
[email protected]
>
post/board/lwmon5/gdc.c
patch
|
blob
|
history
diff --git
a/post/board/lwmon5/gdc.c
b/post/board/lwmon5/gdc.c
index 719194b5d930b555eeb23f1c5d8b616e8a695b6f..6bbd2c236af37d1b96e293df47470fabb63a1041 100644
(file)
--- a/
post/board/lwmon5/gdc.c
+++ b/
post/board/lwmon5/gdc.c
@@
-63,13
+63,12
@@
const static unsigned long otherpattern = 0x01234567;
/* test write/read og a given LIME Register */
static int gdc_test_reg_one(uint value)
{
- int ret;
uint read_value;
/* write test pattern */
out_be32((void *)GDC_SCRATCH_REG, value);
/* read other location (protect against data lines capacity) */
-
ret =
in_be32((void *)GDC_RAM_START);
+ in_be32((void *)GDC_RAM_START);
/* verify test pattern */
read_value = in_be32((void *)GDC_SCRATCH_REG);
if (read_value != value) {